pkgname=kitemmodels
pkgver=5.36.0
pkgrel=1
pkgdesc='Models for Qt Model/View system'
arch="all"
url='https://community.kde.org/Frameworks'
license="LGPL"
depends="qt5-qtbase"
makedepends="extra-cmake-modules py3-qt5 clang doxygen qt5-qttools-dev"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
subpackages="$pkgname-doc"

prepare() {
	mkdir -p $srcdir/build
}

build() {
	cd $srcdir/build
	cmake "$srcdir"/${pkgname}-${pkgver} \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DKDE_INSTALL_LIBDIR=lib \
		-DBUILD_TESTING=OFF \
		-DBUILD_QCH=ON
	make
}

package() {
	cd $srcdir/build
	make DESTDIR="${pkgdir}" install
}
sha512sums="a1ded2f47c03ebd8395a7bc9fcae53d44c0654fd8b0229283e8ec78e222e2b2aace0b119055d76d54a7df5d491e6ca58011b274c7843808e185e15c5b916ee42  kitemmodels-5.36.0.tar.xz"
